package com.wms.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("tb_warehouse_area_local")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class WarehouseAreaLocal {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 库位编号
     */
    @TableField("local_code")
    private String localCode;

    /**
     * 库位长度
     */
    @TableField("local_length")
    private Double localLength;

    /**
     * 库位宽度
     */
    @TableField("local_width")
    private Double localWidth;

    /**
     * 库位高度
     */
    @TableField("local_height")
    private Double localHeight;

    /**
     * 库位容积
     */
    @TableField("local_volume")
    private Double localVolume;

    /**
     * 库位承重
     */
    @TableField("local_bearing_capacity")
    private Double localBearingCapacity;

    /**
     * 巷道号
     */
    @TableField("tunnel_number")
    private String tunnelNumber;

    /**
     * 货架号
     */
    @TableField("shelf_number")
    private String shelfNumber;

    /**
     * 层号
     */
    @TableField("layer_number")
    private String layerNumber;

    /**
     * SaaS标识
     */
    @TableField("saas_id")
    private String saasId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 创建人账号
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 修改人账号
     */
    @TableField("update_by")
    private String updateBy;

    /**
     *  是否有效  1 有效  2 无效
     */
    private Integer status;
    /**
     * 是否删除  1 未删除  2 已删除
     */
    @TableField("is_del")
    private Integer isDel;

    //仓库ID
    private Integer warehouseId;
    //库位Id
    private Integer warehouseAreaId;
    //仓库名称
    @TableField(exist = false)
    private String warehouseName;
    //库位名称
    @TableField(exist = false)
    private String warehouseAreaName;
    //库位类型
    @TableField(exist = false)
    private String category;
}
